package pattern.singleton;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 饿汉模式
 * @author ytj
 * @date 2025/8/6
 */
public class Singleton1 {

    private static Singleton1 singleton=new Singleton1();

    private Singleton1(){

    }

    public static Singleton1 getSingleton(){
        return singleton;
    }
}
